/*
 *Author：COCO
 *代码由框架生成,此处任何更改都可能导致被代码生成器覆盖
 *所有业务编写全部应在Partial文件夹下ProductMaterialService与IProductMaterialService中编写
 */
using iMES.WorkManShip.IRepositories;
using iMES.WorkManShip.IServices;
using iMES.Core.BaseProvider;
using iMES.Core.Extensions.AutofacManager;
using iMES.Entity.DomainModels;

namespace iMES.WorkManShip.Services
{
    public partial class ProductMaterialService : ServiceBase<ProductMaterial, IProductMaterialRepository>
    , IProductMaterialService, IDependency
    {
        public ProductMaterialService(IProductMaterialRepository repository, Custom.IRepositories.IBase_NumberRuleRepository numberRuleRepository)
        : base(repository)
        {
            Init(repository);
            _numberRuleRepository = numberRuleRepository;
        }
        public static IProductMaterialService Instance
    {
      get { return AutofacContainerModule.GetService<IProductMaterialService>(); } }
    }
 }
